<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../css/member_global.css?t={ctime}" rel="stylesheet" type="text/css" />
<link href="../css/member_main_lot_all.css?t={ctime}" rel="stylesheet" type="text/css">
<link href="../css/member_main_lot_b{LottoID}.css?t={ctime}" rel="stylesheet" type="text/css">
<title>Lotto</title>
<script language="JavaScript">
<!--
function CheckChoice(){
	var intChBox = 0, j = 0, i = 0, objChBox, intBT = 0;
	var intMaxSd = 0, isFull = 0, intNum = 0;
	with(document.SAFrm){
		for(i = 0; i < Bet_Type.length; i++){
			if(Bet_Type[i].checked){
				intBT = eval(Bet_Type[i].value);
				intMaxSd = i + 5;
				for(intNum = 0; intNum <= 9; intNum++){
					objChBox = document.SAFrm["ChoiceNumber["+Bet_Type[i].value+"]["+intNum.toString()+"]"];
					objChBox.disabled = false;
				}
			}else if(Bet_Type[i].disabled == false){
				for(intNum = 0; intNum <=9; intNum++){
					objChBox = document.SAFrm["ChoiceNumber["+Bet_Type[i].value+"]["+intNum.toString()+"]"];
					objChBox.checked = false;
					objChBox.disabled = true;
					ChangeClass(intNum,  Bet_Type[i].value, 0);
				}
			}
		}

		for(intNum = 0; intNum <= 9; intNum++){
			objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
			objChBox.disabled = false;
			ChangeClass(intNum,  intBT, 0);
			if(objChBox.checked){
				intChBox++;
				ChangeClass(intNum, intBT, 0);
			}
			if(intChBox == intMaxSd)break;
		}

		if(intChBox == intMaxSd){
			for(intNum = 0; intNum <= 9; intNum++){
				objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
				if(objChBox.checked == false)objChBox.disabled = true;
			}
			isFull++;
		}

		BSubmit.disabled = (isFull == 1 && intBT != 0)?false:true;
	}
}

function ChangeClass(intNum, intType, isOver){
	if(isOver == 1){
		document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#CCFFCC';
	}else{
		if(document.SAFrm["ChoiceNumber["+intType+"]["+intNum+"]"].checked == false)document.getElementById("NumOdds"+intType.toString()+intNum.toString()).style.backgroundColor = '#FFFFFF';
	}
}

function SplitParam(){
	var strParam = "", arrParam = new Array(), i = 0, intBT = 0, intOddsID = 0, flOdds = 999999, intNum = 0, intSNum = -1;

	with(document.SAFrm){
		for(i = 0; i < Bet_Type.length; i++){
			if(Bet_Type[i].checked){
				intBT = eval(Bet_Type[i].value);
				for(intNum = 0; intNum <= 9; intNum++){
					objChBox = document.SAFrm["ChoiceNumber["+intBT.toString()+"]["+intNum.toString()+"]"];
					if(objChBox.checked == true){
						arrParam = objChBox.value.split("#");
						if(flOdds > arrParam[1]){
							intOddsID = arrParam[0];
							flOdds = arrParam[1];
							intSNum = intNum;
						}
					}
				}
				break;
			}
		}
		Number.value = intSNum;
		OddsID.value = intOddsID;
		Odds.value = flOdds;
	}
	return true;
}
//-->
</script>
</head>

<body oncontextmenu="window.event.returnValue=false" ondragstart="window.event.returnValue=false" onselectstart="event.returnValue=false">

<form action="wager_common.php" name="SAFrm" target="leftFrame" method="post" onreset="setTimeout('CheckChoice()', 500);" onsubmit="SplitParam();">
<input type="hidden" name="UserID" value="{UserID}">
<input type="hidden" name="GambleID" value="{GambleID}">
<input type="hidden" name="LottoID" value="{LottoID}">
<input type="hidden" name="sid" value="{sid}">
<input type="hidden" name="OddsID" value="">
<input type="hidden" name="Odds" value="">
<input type="hidden" name="Number" value="0">

<!--樣式2-->
<div class="topStyle_2">
<table class="mtop" width="725" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td align="center"><table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td align="center" class="menu_title">{Title}</td>
			<td align="right" valign="top" class="mictxt">{Periods}<em id="GameNo">{SerialNo}</em>({OpeningDate}{ShowGameDate}&nbsp;{ShowGameTime})
			</td>
		</tr>
		</table>
	</td>
</tr>
<tr class="menu_tab">
	<td nowrap="nowrap" class="menu_tab" >&nbsp;</td>
</tr>
</table>
</div>
<!--共用樣式-->

<table width="725" border="0" cellpadding="0" cellspacing="0" class="mbtab_ont">
<thead>
  <tr>
    <td colspan="3"><input name="Bet_Type" type="radio" class="zadot" value="69" onclick="CheckChoice()" {Radio69}>      {Num69}</td><!-- 5 號 //-->
    <td colspan="3"><input name="Bet_Type" type="radio" class="zadot" value="70" onclick="CheckChoice()" {Radio70}>      {Num70}</td><!-- 6 號 //-->
    <td colspan="3"><input name="Bet_Type" type="radio" class="zadot" value="71" onclick="CheckChoice()" {Radio71}>      {Num71}</td><!-- 7 號 //-->
    <td colspan="3"><input name="Bet_Type" type="radio" class="zadot" value="72" onclick="CheckChoice()" {Radio72}>      {Num72}</td><!-- 8 號 //-->
    <td>{Num68}</td><!-- 全包 //-->
  </tr>
  </thead>
  <tr class="mbtitle">
    <td width="55">{NumberTitle}</td>
    <td width="56">{OddsTitle}</td>
    <td width="55">{ChoiceTitle}</td>
    <td width="55">{NumberTitle}</td>
    <td width="56">{OddsTitle}</td>
    <td width="55">{ChoiceTitle}</td>
    <td width="55">{NumberTitle}</td>
    <td width="56">{OddsTitle}</td>
    <td width="55">{ChoiceTitle}</td>
    <td width="55">{NumberTitle}</td>
    <td width="56">{OddsTitle}</td>
    <td width="55">{ChoiceTitle}</td>
    <td width="61">{OddsTitle}</td>
  </tr>
  <tr class="mcen"><!-- 0 //-->
    <th>0</th>
    <td class="mbline_ratio">{Odds69_0}</td>
    <td class="mbline" id="NumOdds690" AC690_S onmouseover="ChangeClass(0, 69, 1)" onmouseout="ChangeClass(0, 69, 0)" AC690_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][0]" value="{OddsID69_0}#{Odds69_0}"></td>
    <th>0</th>
    <td class="mbline_ratio">{Odds70_0}</td>
    <td class="mbline" id="NumOdds700" AC700_S onmouseover="ChangeClass(0, 70, 1)" onmouseout="ChangeClass(0, 70, 0)" AC700_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][0]" value="{OddsID70_0}#{Odds70_0}"></td>
    <th>0</th>
    <td class="mbline_ratio">{Odds71_0}</td>
    <td class="mbline" id="NumOdds710" AC710_S onmouseover="ChangeClass(0, 71, 1)" onmouseout="ChangeClass(0, 71, 0)" AC710_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][0]" value="{OddsID71_0}#{Odds71_0}"></td>
    <th>0</th>
    <td class="mbline_ratio">{Odds72_0}</td>
    <td class="mbline" id="NumOdds720" AC720_S onmouseover="ChangeClass(0, 72, 1)" onmouseout="ChangeClass(0, 72, 0)" AC720_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][0]" value="{OddsID72_0}#{Odds72_0}"></td>
	<th class="mbline" AC680_S AC680_E><a href="wager_common.php?UserID={UserID}&GambleID={GambleID}&Bet_Type=68&OddsID={OddsID68_0}&Odds={Odds68_0}&LottoID={LottoID}&Number=0&sid={sid}" target="leftFrame">{Odds68_0}</a></th>
  </tr>
  <tr class="mcen"><!-- 1 //-->
    <th>1</th>
    <td class="mbline_ratio">{Odds69_1}</td>
    <td class="mbline" id="NumOdds691" AC691_S onmouseover="ChangeClass(1, 69, 1)" onmouseout="ChangeClass(1, 69, 0)" AC691_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][1]" value="{OddsID69_1}#{Odds69_1}"></td>
    <th>1</th>
    <td class="mbline_ratio">{Odds70_1}</td>
    <td class="mbline" id="NumOdds701" AC701_S onmouseover="ChangeClass(1, 70, 1)" onmouseout="ChangeClass(1, 70, 0)" AC701_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][1]" value="{OddsID70_1}#{Odds70_1}"></td>
    <th>1</th>
    <td class="mbline_ratio">{Odds71_1}</td>
    <td class="mbline" id="NumOdds711" AC711_S onmouseover="ChangeClass(1, 71, 1)" onmouseout="ChangeClass(1, 71, 0)" AC711_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][1]" value="{OddsID71_1}#{Odds71_1}"></td>
    <th>1</th>
    <td class="mbline_ratio">{Odds72_1}</td>
    <td class="mbline" id="NumOdds721" AC721_S onmouseover="ChangeClass(1, 72, 1)" onmouseout="ChangeClass(1, 72, 0)" AC721_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][1]" value="{OddsID72_1}#{Odds72_1}"></td>

    <td rowspan="9" class="mbline"><input name="BSubmit" type="submit" class="zabottonR" value="{BSubmit}" disabled><br /><br />
      <input type="reset" class="zabotton" value="{BReset}"></td>
  </tr>
  <tr class="mcen"><!-- 2 //-->
    <th>2</th>
    <td class="mbline_ratio">{Odds69_2}</td>
    <td class="mbline" id="NumOdds692" AC692_S onmouseover="ChangeClass(2, 69, 1)" onmouseout="ChangeClass(2, 69, 0)" AC692_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][2]" value="{OddsID69_2}#{Odds69_2}"></td>
    <th>2</th>
    <td class="mbline_ratio">{Odds70_2}</td>
    <td class="mbline" id="NumOdds702" AC702_S onmouseover="ChangeClass(2, 70, 1)" onmouseout="ChangeClass(2, 70, 0)" AC702_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][2]" value="{OddsID70_2}#{Odds70_2}"></td>
    <th>2</th>
    <td class="mbline_ratio">{Odds71_2}</td>
    <td class="mbline" id="NumOdds712" AC712_S onmouseover="ChangeClass(2, 71, 1)" onmouseout="ChangeClass(2, 71, 0)" AC712_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][2]" value="{OddsID71_2}#{Odds71_2}"></td>
    <th>2</th>
    <td class="mbline_ratio">{Odds72_2}</td>
    <td class="mbline" id="NumOdds722" AC722_S onmouseover="ChangeClass(2, 72, 1)" onmouseout="ChangeClass(2, 72, 0)" AC722_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][2]" value="{OddsID72_2}#{Odds72_2}"></td>
  </tr>
  <tr class="mcen"><!-- 3 //-->
    <th>3</th>
    <td class="mbline_ratio">{Odds69_3}</td>
    <td class="mbline" id="NumOdds693" AC693_S onmouseover="ChangeClass(3, 69, 1)" onmouseout="ChangeClass(3, 69, 0)" AC693_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][3]" value="{OddsID69_3}#{Odds69_3}"></td>
    <th>3</th>
    <td class="mbline_ratio">{Odds70_3}</td>
    <td class="mbline" id="NumOdds703" AC703_S onmouseover="ChangeClass(3, 70, 1)" onmouseout="ChangeClass(3, 70, 0)" AC703_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][3]" value="{OddsID70_3}#{Odds70_3}"></td>
    <th>3</th>
    <td class="mbline_ratio">{Odds71_3}</td>
    <td class="mbline" id="NumOdds713" AC713_S onmouseover="ChangeClass(3, 71, 1)" onmouseout="ChangeClass(3, 71, 0)" AC713_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][3]" value="{OddsID71_3}#{Odds71_3}"></td>
    <th>3</th>
    <td class="mbline_ratio">{Odds72_3}</td>
    <td class="mbline" id="NumOdds723" AC723_S onmouseover="ChangeClass(3, 72, 1)" onmouseout="ChangeClass(3, 72, 0)" AC723_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][3]" value="{OddsID72_3}#{Odds72_3}"></td>
  </tr>
  <tr class="mcen"><!-- 4 //-->
    <th>4</th>
    <td class="mbline_ratio">{Odds69_4}</td>
    <td class="mbline" id="NumOdds694" AC694_S onmouseover="ChangeClass(4, 69, 1)" onmouseout="ChangeClass(4, 69, 0)" AC694_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][4]" value="{OddsID69_4}#{Odds69_4}"></td>
    <th>4</th>
    <td class="mbline_ratio">{Odds70_4}</td>
    <td class="mbline" id="NumOdds704" AC704_S onmouseover="ChangeClass(4, 70, 1)" onmouseout="ChangeClass(4, 70, 0)" AC704_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][4]" value="{OddsID70_4}#{Odds70_4}"></td>
    <th>4</th>
    <td class="mbline_ratio">{Odds71_4}</td>
    <td class="mbline" id="NumOdds714" AC714_S onmouseover="ChangeClass(4, 71, 1)" onmouseout="ChangeClass(4, 71, 0)" AC714_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][4]" value="{OddsID71_4}#{Odds71_4}"></td>
    <th>4</th>
    <td class="mbline_ratio">{Odds72_4}</td>
    <td class="mbline" id="NumOdds724" AC724_S onmouseover="ChangeClass(4, 72, 1)" onmouseout="ChangeClass(4, 72, 0)" AC724_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][4]" value="{OddsID72_4}#{Odds72_4}"></td>
  </tr>
  <tr class="mcen"><!-- 5 //-->
    <th>5</th>
    <td class="mbline_ratio">{Odds69_5}</td>
    <td class="mbline" id="NumOdds695" AC695_S onmouseover="ChangeClass(5, 69, 1)" onmouseout="ChangeClass(5, 69, 0)" AC695_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][5]" value="{OddsID69_5}#{Odds69_5}"></td>
    <th>5</th>
    <td class="mbline_ratio">{Odds70_5}</td>
    <td class="mbline" id="NumOdds705" AC705_S onmouseover="ChangeClass(5, 70, 1)" onmouseout="ChangeClass(5, 70, 0)" AC705_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][5]" value="{OddsID70_5}#{Odds70_5}"></td>
    <th>5</th>
    <td class="mbline_ratio">{Odds71_5}</td>
    <td class="mbline" id="NumOdds715" AC715_S onmouseover="ChangeClass(5, 71, 1)" onmouseout="ChangeClass(5, 71, 0)" AC715_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][5]" value="{OddsID71_5}#{Odds71_5}"></td>
    <th>5</th>
    <td class="mbline_ratio">{Odds72_5}</td>
    <td class="mbline" id="NumOdds725" AC725_S onmouseover="ChangeClass(5, 72, 1)" onmouseout="ChangeClass(5, 72, 0)" AC725_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][5]" value="{OddsID72_5}#{Odds72_5}"></td>
  </tr>
  <tr class="mcen"><!-- 6 //-->
    <th>6</th>
    <td class="mbline_ratio">{Odds69_6}</td>
    <td class="mbline" id="NumOdds696" AC696_S onmouseover="ChangeClass(6, 69, 1)" onmouseout="ChangeClass(6, 69, 0)" AC696_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][6]" value="{OddsID69_6}#{Odds69_6}"></td>
    <th>6</th>
    <td class="mbline_ratio">{Odds70_6}</td>
    <td class="mbline" id="NumOdds706" AC706_S onmouseover="ChangeClass(6, 70, 1)" onmouseout="ChangeClass(6, 70, 0)" AC706_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][6]" value="{OddsID70_6}#{Odds70_6}"></td>
    <th>6</th>
    <td class="mbline_ratio">{Odds71_6}</td>
    <td class="mbline" id="NumOdds716" AC716_S onmouseover="ChangeClass(6, 71, 1)" onmouseout="ChangeClass(6, 71, 0)" AC716_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][6]" value="{OddsID71_6}#{Odds71_6}"></td>
    <th>6</th>
    <td class="mbline_ratio">{Odds72_6}</td>
    <td class="mbline" id="NumOdds726" AC726_S onmouseover="ChangeClass(6, 72, 1)" onmouseout="ChangeClass(6, 72, 0)" AC726_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][6]" value="{OddsID72_6}#{Odds72_6}"></td>
  </tr>
  <tr class="mcen"><!-- 7 //-->
    <th>7</th>
    <td class="mbline_ratio">{Odds69_7}</td>
    <td class="mbline" id="NumOdds697" AC697_S onmouseover="ChangeClass(7, 69, 1)" onmouseout="ChangeClass(7, 69, 0)" AC697_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][7]" value="{OddsID69_7}#{Odds69_7}"></td>
    <th>7</th>
    <td class="mbline_ratio">{Odds70_7}</td>
    <td class="mbline" id="NumOdds707" AC707_S onmouseover="ChangeClass(7, 70, 1)" onmouseout="ChangeClass(7, 70, 0)" AC707_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][7]" value="{OddsID70_7}#{Odds70_7}"></td>
    <th>7</th>
    <td class="mbline_ratio">{Odds71_7}</td>
    <td class="mbline" id="NumOdds717" AC717_S onmouseover="ChangeClass(7, 71, 1)" onmouseout="ChangeClass(7, 71, 0)" AC717_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][7]" value="{OddsID71_7}#{Odds71_7}"></td>
    <th>7</th>
    <td class="mbline_ratio">{Odds72_7}</td>
    <td class="mbline" id="NumOdds727" AC727_S onmouseover="ChangeClass(7, 72, 1)" onmouseout="ChangeClass(7, 72, 0)" AC727_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][7]" value="{OddsID72_7}#{Odds72_7}"></td>
  </tr>
  <tr class="mcen"><!-- 8 //-->
    <th>8</th>
    <td class="mbline_ratio">{Odds69_8}</td>
    <td class="mbline" id="NumOdds698" AC698_S onmouseover="ChangeClass(8, 69, 1)" onmouseout="ChangeClass(8, 69, 0)" AC698_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][8]" value="{OddsID69_8}#{Odds69_8}"></td>
    <th>8</th>
    <td class="mbline_ratio">{Odds70_8}</td>
    <td class="mbline" id="NumOdds708" AC708_S onmouseover="ChangeClass(8, 70, 1)" onmouseout="ChangeClass(8, 70, 0)" AC708_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][8]" value="{OddsID70_8}#{Odds70_8}"></td>
    <th>8</th>
    <td class="mbline_ratio">{Odds71_8}</td>
    <td class="mbline" id="NumOdds718" AC718_S onmouseover="ChangeClass(8, 71, 1)" onmouseout="ChangeClass(8, 71, 0)" AC718_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][8]" value="{OddsID71_8}#{Odds71_8}"></td>
    <th>8</th>
    <td class="mbline_ratio">{Odds72_8}</td>
    <td class="mbline" id="NumOdds728" AC728_S onmouseover="ChangeClass(8, 72, 1)" onmouseout="ChangeClass(8, 72, 0)" AC728_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][8]" value="{OddsID72_8}#{Odds72_8}"></td>
  </tr>
  <tr class="mcen"><!-- 9 //-->
    <th>9</th>
    <td class="mbline_ratio">{Odds69_9}</td>
    <td class="mbline" id="NumOdds699" AC699_S onmouseover="ChangeClass(9, 69, 1)" onmouseout="ChangeClass(9, 69, 0)" AC699_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[69][9]" value="{OddsID69_9}#{Odds69_9}"></td>
    <th>9</th>
    <td class="mbline_ratio">{Odds70_9}</td>
    <td class="mbline" id="NumOdds709" AC709_S onmouseover="ChangeClass(9, 70, 1)" onmouseout="ChangeClass(9, 70, 0)" AC709_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[70][9]" value="{OddsID70_9}#{Odds70_9}"></td>
    <th>9</th>
    <td class="mbline_ratio">{Odds71_9}</td>
    <td class="mbline" id="NumOdds719" AC719_S onmouseover="ChangeClass(9, 71, 1)" onmouseout="ChangeClass(9, 71, 0)" AC719_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[71][9]" value="{OddsID71_9}#{Odds71_9}"></td>
    <th>9</th>
    <td class="mbline_ratio">{Odds72_9}</td>
    <td class="mbline" id="NumOdds729" AC729_S onmouseover="ChangeClass(9, 72, 1)" onmouseout="ChangeClass(9, 72, 0)" AC729_E onclick="CheckChoice()"><input type="checkbox" name="ChoiceNumber[72][9]" value="{OddsID72_9}#{Odds72_9}"></td>
  </tr>
</table>

</form>
</body>
</html>